//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class SowSeeds extends LogicCommand {
    private int CurrentId;
    private int ObjectId;
    private final int cmdId = 1;

    public SowSeeds(int tt, int CurrentId, int ObjectId) {
        super(tt);
        this.CurrentId = CurrentId;
        this.ObjectId = ObjectId;
    }

    public int getCommandId() {
        return 1;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(1);
        stream.writeInt(this.CurrentId);
        stream.writeInt(this.ObjectId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
